package com.yilin.tms.core.entity.user.auth;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yilin.tms.core.commons.base.BaseAuth;
import com.yilin.tms.core.commons.annotation.Explain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 描   述： 营业执照表认证表 公司都需认证
 * 版 本 号：  V1.0
 */
@Entity
@Table(name = "auth_business_license")
@TableName(value = "auth_business_license")
public class BusinessLicense extends BaseAuth {

    private static final long serialVersionUID = 7978015080422323446L;

    @Column(name = "organize_id")
    private String organizeId;//组织ID
    @Column(name = "organize_name")
    private String organizeName;//组织商户名称

    @Column(name = "company_img")
    @Explain("营业执照图片")
    private String companyImg; //营业执照图片
    @Column(name = "legal_id_card_font_img")
    @Explain("法人身份证正面图片")
    private String legalIdCardFontImg; //法人身份证正面图片
    @Column(name = "legal_id_card_back_img")
    @Explain("法人身份证反面图片")
    private String legalIdCardBackImg; //法人身份证反面图片

    @Column
    @Explain("营业执照名称")
    private String name; //营业执照名称
    @Column(name = "legal_name")
    @Explain("法人")
    private String legalName;//法人
    @Column(name = "legal_card_no")
    @Explain("法人-身份证证件号")
    private String legalCardNo;//法人-身份证证件号
    @Column(name = "company_area")
    @Explain("所在区域")
    private String companyArea;//所在区域
    @Column(name = "occupation_type")
    @Explain("职业类型")
    private String occupationType; //职业类型
    @Column(name = "company_address")
    @Explain("地址")
    private String companyAddress; //地址
    @Column(name = "business_no")
    @Explain("营业执照编号")
    private String businessNo; //营业执照编号
    @Column(name = "business_tel")
    @Explain("联系方式")
    private String businessTel;//联系方式

    @Column(name = "validity_start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("营业执照生效日期")
    private Date validityStartDate; //营业执照生效日期
    @Column(name = "validity_end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("营业执照失效日期")
    private Date validityEndDate; ///营业执照失效日期

    @Column(name = "bc_validity_start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("法人身份证生效日期")
    private Date bcValidityStartDate; //法人身份证生效日期
    @Column(name = "bc_validity_end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("法人身份证失效日期")
    private Date bcValidityEndDate; //法人身份证失效日期

    @Column(name = "old_business_no")
    private String oldBusinessNo; //旧数据 记录最近一次修改前记录

    public String getOccupationType() {
        return occupationType;
    }

    public void setOccupationType(String occupationType) {
        this.occupationType = occupationType;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public String getLegalIdCardFontImg() {
        return legalIdCardFontImg;
    }

    public void setLegalIdCardFontImg(String legalIdCardFontImg) {
        this.legalIdCardFontImg = legalIdCardFontImg;
    }

    public String getLegalIdCardBackImg() {
        return legalIdCardBackImg;
    }

    public void setLegalIdCardBackImg(String legalIdCardBackImg) {
        this.legalIdCardBackImg = legalIdCardBackImg;
    }

    public String getLegalName() {
        return legalName;
    }

    public void setLegalName(String legalName) {
        this.legalName = legalName;
    }

    public String getLegalCardNo() {
        return legalCardNo;
    }

    public void setLegalCardNo(String legalCardNo) {
        this.legalCardNo = legalCardNo;
    }

    public String getOldBusinessNo() {
        return oldBusinessNo;
    }

    public void setOldBusinessNo(String oldBusinessNo) {
        this.oldBusinessNo = oldBusinessNo;
    }


    public Date getBcValidityStartDate() {
        return bcValidityStartDate;
    }

    public void setBcValidityStartDate(Date bcValidityStartDate) {
        this.bcValidityStartDate = bcValidityStartDate;
    }

    public Date getBcValidityEndDate() {
        return bcValidityEndDate;
    }

    public void setBcValidityEndDate(Date bcValidityEndDate) {
        this.bcValidityEndDate = bcValidityEndDate;
    }

    public Date getValidityStartDate() {
        return validityStartDate;
    }

    public void setValidityStartDate(Date validityStartDate) {
        this.validityStartDate = validityStartDate;
    }

    public String getBusinessTel() {
        return businessTel;
    }

    public void setBusinessTel(String businessTel) {
        this.businessTel = businessTel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo;
    }

    public String getCompanyImg() {
        return companyImg;
    }

    public void setCompanyImg(String companyImg) {
        this.companyImg = companyImg;
    }

    public String getCompanyArea() {
        return companyArea;
    }

    public void setCompanyArea(String companyArea) {
        this.companyArea = companyArea;
    }

    public Date getValidityEndDate() {
        return validityEndDate;
    }

    public void setValidityEndDate(Date validityEndDate) {
        this.validityEndDate = validityEndDate;
    }


}
